package com.school.fuyuan.common.message;

import com.school.fuyuan.common.message.ResponseHead;
import lombok.*;

/**
 * @author zrhong
 * @version 1.0
 * @date 2019/3/3 20:26
 * @description
 */
@Setter
@Getter
@ToString
public class ResponseMsg<T> {

    private ResponseHead head;

    private T data;

    public ResponseMsg(ResponseHead head, T data) {
        this.head = head;
        this.data = data;
    }

    public ResponseMsg(T data) {
        this();
        this.data = data;
    }

    public ResponseMsg() {
        this.head = new ResponseHead();
    }
}
